FROM golang:1.10.0-alpine3.7
MAINTAINER joen kai168@126.com

RUN apk add --no-cache git

WORKDIR /root/
RUN go get github.com/henrylee2cn/pholcus || echo '';
ADD runtime/pholcus/src/* /root/
# RUN go build -o pholcux
# RUN go get github.com/henrylee2cn/teleport \
#     # && go get golang.org/x/net/html/charset \
#     && go get gopkg.in/mgo.v2 \
#     && go get github.com/robertkrimen/otto \
#     && go get ithub.com/Shopify/sarama \
#     && go get github.com/go-sql-driver/mysql \
#     && go get github.com/lxn/walk \
#     && go get github.com/elazarl/go-bindata-assetfs \
#     && go get github.com/henrylee2cn/pholcus
# ADD pholcus/src/main.go main.go

# ENTRYPOINT go run main.go
VOLUME /go/src/spider_lib

#ENTRYPOINT go run client
CMD [ "go","run","client.go","-a_mode=2","-a_master=phc_master"]